package com.ruoyi.receivable.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.receivable.mapper.ErpAccountReceivableMapper;
import com.ruoyi.receivable.domain.ErpAccountReceivable;
import com.ruoyi.receivable.service.IErpAccountReceivableService;

/**
 * 应收款明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-19
 */
@Service
public class ErpAccountReceivableServiceImpl implements IErpAccountReceivableService 
{
    @Autowired
    private ErpAccountReceivableMapper erpAccountReceivableMapper;

    /**
     * 查询应收款明细
     * 
     * @param outboundNo 应收款明细主键
     * @return 应收款明细
     */
    @Override
    public ErpAccountReceivable selectErpAccountReceivableByOutboundNo(String outboundNo)
    {
        return erpAccountReceivableMapper.selectErpAccountReceivableByOutboundNo(outboundNo);
    }

    /**
     * 查询应收款明细列表
     * 
     * @param erpAccountReceivable 应收款明细
     * @return 应收款明细
     */
    @Override
    public List<ErpAccountReceivable> selectErpAccountReceivableList(ErpAccountReceivable erpAccountReceivable)
    {
        return erpAccountReceivableMapper.selectErpAccountReceivableList(erpAccountReceivable);
    }

    /**
     * 新增应收款明细
     * 
     * @param erpAccountReceivable 应收款明细
     * @return 结果
     */
    @Override
    public int insertErpAccountReceivable(ErpAccountReceivable erpAccountReceivable)
    {
        return erpAccountReceivableMapper.insertErpAccountReceivable(erpAccountReceivable);
    }

    /**
     * 修改应收款明细
     * 
     * @param erpAccountReceivable 应收款明细
     * @return 结果
     */
    @Override
    public int updateErpAccountReceivable(ErpAccountReceivable erpAccountReceivable)
    {
        return erpAccountReceivableMapper.updateErpAccountReceivable(erpAccountReceivable);
    }

    /**
     * 批量删除应收款明细
     * 
     * @param outboundNos 需要删除的应收款明细主键
     * @return 结果
     */
    @Override
    public int deleteErpAccountReceivableByOutboundNos(String[] outboundNos)
    {
        return erpAccountReceivableMapper.deleteErpAccountReceivableByOutboundNos(outboundNos);
    }

    /**
     * 删除应收款明细信息
     * 
     * @param outboundNo 应收款明细主键
     * @return 结果
     */
    @Override
    public int deleteErpAccountReceivableByOutboundNo(String outboundNo)
    {
        return erpAccountReceivableMapper.deleteErpAccountReceivableByOutboundNo(outboundNo);
    }
}
